package model
{
	import mx.messaging.AbstractConsumer;

	public class AppCons
	{
		public static const AUDIT:String = '1';
		public static const USER:String = '2';
		public static const GAME:String = '3';
		public static const CMS:String = '4';
		public static const MESSAGE:String = '5';
		public static const ACTIVITY:String = '6';
		public static const ADMINUSER:String = '7';
		public static const APPLYCLASS_AUDIT:String = '8';
		public static const APPLYPAY_AUDIT:String = '9';
		
		public static const MODULES:Array = [{index: 1, label: '作品审核管理'},
											{index: 2, label: '用户管理'},
											{index: 3, label: '游戏管理'},
											{index: 4, label: '内容发布管理'},
											{index: 5, label: '消息管理'},
											{index: 6, label: '活动管理'},
											{index: 7, label: '后台用户管理'},
											{index: 8, label: '申请精华审核'},
											{index: 9, label: '付费申请审核'}];

		public static const catalogs:Array = new Array({id: 10, name: "装备秀"},
													{id: 20, name: "时装秀"},
													{id: 30, name: "宠物秀"},
													{id: 40, name: "精彩秀"},
													{id: 50, name: "战斗"},
													{id: 60, name: "搞笑"},
													{id: 70, name: "情感"},
													{id: 80, name: "风景"},
													{id: 90, name: "活动/纪念"},
													{id: 100, name: "公会宣传"},
													{id: 110, name: "游戏宣传"},
													{id: 120, name: "其他"},
													{id: 130, name: "休闲/运动"},
													{id: 140, name: "宣传"},
													{id: 150, name: "攻略"});

		public static function getCatalogNameById(id:int):String
		{
			for each (var item:Object in catalogs)
			{
				if (item.id == id)
				{
					return String(item.name);
				}
			}

			return '';
		}
	}
}
